package com.miniprogram.api.service;

import com.miniprogram.bean.po.CustomerUser;
import com.miniprogram.bean.po.CustomerUserToken;
import com.miniprogram.common.service.BaseService;

/**
 * <p>
 * 用户Token表 服务类
 * </p>
 *
 * @author lin
 * @since 2022-06-21
 */
public interface ICustomerUserTokenService extends BaseService<CustomerUserToken> {

    CustomerUserToken getByToken(String token);

    CustomerUserToken getByUserId(Integer userId);

    CustomerUserToken createTokenForLogin(CustomerUser user);
}
